trigger MeasureCalcTrigger on Measure_Calculate__c (before update ,after delete,after update) {
  
    ///在测算审批通过的时候  将通过的的测算设为有效,将之前有效的测算改为无效
        if (Trigger.isBefore && Trigger.isUpdate) {
          MeasureCalcHandler.calcZc(trigger.newMap);
        	MeasureCalcHandler.changeStaus(Trigger.new,Trigger.oldMap);
        	MeasureCalcHandler.setOppStageName(Trigger.new,Trigger.oldMap);
        }
    ///在更新完成后 重新计算 业务机会 的 项目类型
	  /*if (Trigger.isAfter ) {
      		if(Trigger.isDelete)MeasureCalcHandler.setOppProjectTypewhenUpate(Trigger.old);
      		if(Trigger.isUpdate)MeasureCalcHandler.setOppProjectTypewhenUpate(Trigger.new);

       }   
       */

}